
package de.justphil.tcg.tcgandroidclient.content.rest;

import de.justphil.tcg.tcgandroidclient.util.StringTools;

/**
 * Immutable
 * 
 * @author Martin
 * 
 */
public class RESTGeoCard {
	
	/* {"id":107,"lat":51.48934458421732,"lon":7.012534110911336,"card":3}, */
	private final long cardId;
	private final int cardType;
	private final double longitude;
	private final double latitude;
	
	public RESTGeoCard(long cardId, int cardType, double latitude, double longitude) {
	
		this.cardId = cardId;
		this.cardType = cardType;
		this.longitude = longitude;
		this.latitude = latitude;
	}
	
	public long getCardId() {
	
		return cardId;
	}
	
	public int getCardType() {
	
		return cardType;
	}
	
	public double getLongitude() {
	
		return longitude;
	}
	
	public double getLatitude() {
	
		return latitude;
	}
	
	@Override
	public String toString() {
	
		return StringTools.getString(new Object[] {
				"(ID:", cardId, "|Type:", cardType, "|Lat:", latitude, "|Lon:", longitude, ")" });
	}
}
